package com.meteor.quartz.convert;

import com.meteor.quartz.entity.ScheduleJob;
import com.meteor.quartz.vo.ScheduleJobVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
* 定时任务
*
* @author lynn
*/
@Mapper
public interface ScheduleJobConvert {
    ScheduleJobConvert INSTANCE = Mappers.getMapper(ScheduleJobConvert.class);

    ScheduleJob convert(ScheduleJobVO vo);

    ScheduleJobVO convert(ScheduleJob entity);

    List<ScheduleJobVO> convertList(List<ScheduleJob> list);

}